<html><head><title>FreeGadget</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">FreeGadget()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>FreeGadget</b></font>(#Gadget)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Free and remove the gadget from the display (and free its gadgetlist if the gadget was a container). 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Gadget</i></td>
<td width="90%"> 
The gadget to free. If <font color="#924B72">#PB_All</font> is specified, all the remaining gadgets are freed. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Remarks</b></p><blockquote>

A gadget is freed automatically if one of the following happens: 
<br>
<br>
- The window that contains the gadget is <a href="../window/closewindow.html">closed</a>. 
<br>
- The parent of the gadget (<a href="containergadget.html">ContainerGadget()</a>, <a href="panelgadget.html">PanelGadget()</a> etc.) is freed. 
<br>
- The program ends. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="isgadget.html">IsGadget()</a>, <a href="../window/closewindow.html">CloseWindow()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=framegadget.html>FrameGadget()</a> - <a href=index.html>Gadget Index</a> - <a href=gadgetheight.html>GadgetHeight()</a> ->

</body></html>